home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dirut / fichici.zip / FICHICI.DOC < prev    next >
Text File  |  1993-07-08  |  1KB  |  45 lines

  1.  
  2.  
  3.  
  4. FICHICI 1.0           FILEDATE CHECKING UTILITY           FICHICI 1.0
  5.  
  6.  
  7.  
  8.  
  9. NAME
  10.         fichici (is file here?) - checks specified pathname for files
  11.                                   matching the current system date
  12.  
  13. SYNTAX
  14.         fichici PATHNAME
  15.  
  16.         ex. fichici C:\USER\TMP\*.*
  17.  
  18. DESCRIPTION
  19.         This is a file that searches the specified pathname for files
  20.         matching the current system date. This utility is designed to be
  21.         used in a DOS batch file, hence the returning errorcodes.
  22.  
  23.         First the system date is obtained.
  24.         Then files in the specified path are accessed one by one, and their
  25.         dates compared with the system date.
  26.         If there is a match, ERRORLEVEL returns 0.
  27.         Otherwise,           ERRORLEVEL returns 1.
  28.  
  29. SAMPLE BATCH FILE
  30.  
  31.         access N:DISKNAME@SERVER
  32.         rem On a network, first make sure you are linked to the required disk.
  33.         fichici N:\UTILS\TesTIng\docs\*.*
  34.         rem OR
  35.         fichici N:\UTILS\TesTIng\docs\*.c
  36.         rem Note the use of mixed case.
  37.         rem You must specify the path using the described syntax.
  38.         rem Wildcards are permitted, as long as they have valid DOS structure,
  39.         rem as in the examples above.
  40.         if errorlevel 1 echo Files created today.
  41.         if errorlevel 0 echo No files created today.
  42.         rem Test errorlevels in reverse, since everything less than
  43.         rem the current errorlevel is true.
  44.  
  45.